/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface UserOrderScopeVen extends BasicModel<UserOrderScopeVen> {
  userCode?: string; // 用户编码
  venId?: string; // 供应商ID
}

export const userOrderScopeVenList = (params?: UserOrderScopeVen | any) =>
  defHttp.get<UserOrderScopeVen>({ url: adminPath + '/srm/scope/userOrderScopeVen/list', params });

export const userOrderScopeVenListData = (params?: UserOrderScopeVen | any) =>
  defHttp.post<Page<UserOrderScopeVen>>({ url: adminPath + '/srm/scope/userOrderScopeVen/listData', params });

export const userOrderScopeVenForm = (params?: UserOrderScopeVen | any) =>
  defHttp.get<UserOrderScopeVen>({ url: adminPath + '/srm/scope/userOrderScopeVen/form', params });

export const userOrderScopeVenSave = (params?: any, data?: UserOrderScopeVen | any) =>
  defHttp.postJson<UserOrderScopeVen>({ url: adminPath + '/srm/scope/userOrderScopeVen/save', params, data });

export const userOrderScopeVenDelete = (params?: UserOrderScopeVen | any) =>
  defHttp.get<UserOrderScopeVen>({ url: adminPath + '/srm/scope/userOrderScopeVen/delete', params });
